home *** CD-ROM | disk | FTP | other *** search
- /* ========================================= */
- /* Final Writer Arexx Macro - TO BOLD */
- /* Set the font at the insertion point to */
- /* Bold. Note that this will only work for */
- /* fonts whose styled names start with '_' */
- /* (the underscore character) such as */
- /* X X_Italic, X_Bold, X_BoldItalic. */
- /* $VER: TxtStyle_Bold 3.0 (22.7.93) */
- /* ========================================= */
- Options Results
-
- /* ------------------------------ */
- /* Get the complete font pathname */
- /* ------------------------------ */
- Status FontPath
- fontpath = Result
-
- /* ------------------------------------- */
- /* Get only the font filename (w/o path) */
- /* ------------------------------------- */
- Status FontName
- fontname = Result
-
- /* -------------------------------- */
- /* Does the file name have an '_' */
- /* This will signify if the font is */
- /* normal or styled. */
- /* -------------------------------- */
- pos = LASTPOS('_', fontname)
- IF (pos == 0) THEN
- DO
- fontpath = fontpath || '_Bold'
- END
- ELSE DO
- pos = LASTPOS('_', fontpath)
- fontpath = DELSTR(fontpath, pos)
- fontpath = fontpath || '_Bold'
- END
-
- Font fontpath
-
-